package nl.avans.osgi.clientmodelservice;

import java.util.Hashtable;

import nl.avans.osgi.clientmodel.ClientModelService;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activator implements BundleActivator {

	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
	 */
	public void start(BundleContext context) throws Exception {
	    ClientModelService service = new ClientServiceImpl();
	    context.registerService(ClientModelService.class.getName(), service, new Hashtable<Object, Object>());
	    System.out.println("ClientModelService registered.");
	}

	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
	 */
	public void stop(BundleContext context) throws Exception {
	}

}
